package com.miao.websecurity.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.miao.websecurity.dao.SysApiDao;
import com.miao.websecurity.dao.SysMenuDao;
import com.miao.websecurity.entity.Admin;
import com.miao.websecurity.entity.SysMenu;
import com.miao.websecurity.entity.vo.MenuVO;
import com.miao.websecurity.service.SysMenuService;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * 系统菜单列表(SysMenu)表服务实现类
 *
 * @author MiaoWenqing
 * @since 2021-01-16 15:41:11
 */
@Service("sysMenuService")
public class SysMenuServiceImpl extends ServiceImpl<SysMenuDao, SysMenu> implements SysMenuService {


    @Resource
    private  SysMenuDao sysMenuDao;

    /**
     * 根据adminId 获取菜单
     *
     * @param adminId adminId
     * @return
     */
    @Override
    public List<SysMenu> getMenuByAdminId(String adminId) {

      return   this.sysMenuDao.getMenuByAdminId(adminId);

    }
}